package ch.holzi.paperracers.view;

import java.util.Comparator;

public class DistanceComparator implements Comparator<Distance> 
{

	@Override
	public int compare(Distance lhs, Distance rhs)
	{
		if (lhs.distance < rhs.distance)
			return -1;
		else if (lhs.distance > rhs.distance)
			return 1;
		else
			return 0;
	}

}
